﻿using Electronic_work_order.Model;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Electronic_work_order.Interfacess.OA_application;
namespace Electronic_work_order.Controllers
{

    [ApiController]
    public class OA_ApplicationController : ControllerBase
    {
        private readonly Iapplication application;

        public OA_ApplicationController(Iapplication application)
        {
            this.application = application;
        }
        [HttpGet]
        [Route("/[controller]/GetApplications")]
        //查询申请类型页面
        public IEnumerable<application> GetApplications()
        {
            return application.GetApplications();
        }
        }
}
